package com.meida.module.bus.provider.api.util;

public class ApiConstants {
    // 物资标识
    public static final String WZ_PLANDATA = "WZ";
    // 分包标识
    public static final String FB_PLANDATA = "FB";

    // 物资100版本标识
    public static final String WZ_PLANDATA_100 = "WZ100";
    // 物资200版本标识
    public static final String WZ_PLANDATA_200 = "WZ200";
    // 分包100版本标识
    public static final String FB_PLANDATA_100 = "FB100";
    // 分包200版本标识
    public static final String FB_PLANDATA_200 = "FB200";

    public static final String MATERIALCODE_MASTER_MARK = "00000000";
    public static final String SRM_SQLSER_TBL_PROJECT = "B_BP_PROJECTINFO";
    public static final String SRM_MYSQL_TBL_PROJECT = "srm_projectinfo";
    public static final String DOUBLE_ZERO = "00";
    // SRM关联表更新
    public static final int BUSMATERIALSRM_ZERO = 0;
    // SRM关联表更新
    public static final int BUSMATERIALSRM_ONE = 1;
    // SRM关联表更新
    public static final int BUSMATERIALSRM_TWO = 2;

    // SRM合同同步标识 分包商 合同同步状态 0 下达中 1 SRM合同下达成功 99 SRM下达失败
    public static final String SYNCSTATUS_FOR_CONTRACT_SYNC_ING = "0";
    public static final String SYNCSTATUS_FOR_CONTRACT_SYNC_OK = "1";
    public static final String SYNCSTATUS_FOR_CONTRACT_SYNC_ERR = "99";

    // INT 0
    public static final int INT_ZERO = 0;
    // INT 1
    public static final int INT_ONE = 1;
    // INT 11
    public static final int INT_ELEVEN = 11;

    // 通用正常
    public static final int COMMON_RESULT_ZERO = 0;
    // 通用失败
    public static final int COMMON_RESULT_ONE = 1;

    // 请求API正常
    public static final int SYNC_API_RESULT_ZERO = 0;
    // 请求API失败
    public static final int SYNC_API_RESULT_ONE = 1;

    // 公司代码
    public static final String COMPANY_CODE = "1000";
    // 公司名称
    public static final String COMPANY_NM = "柏诚工程股份有限公司";

    // 版本100
    public static final int VER_100 = 100;
    // 版本200
    public static final int VER_200 = 200;

    // TODO:材料申请 明细状态 等待下达
    public static final int STATE_DETAIL_98 = 98;
    // TODO:材料申请 关闭
    public static final int STATE_99 = 99;

    // 对内验工月报 0 未同步
    public static final String SYNC_FLG_OFF = "2";
    // 对内验工月报 1 已同步
    public static final String SYNC_FLG_ON = "1";

    // 分包计划合同同步状态 0 下达中
    public static final String PACKAGE_SRM_SYNC_ING = "0";
    // 分包计划合同同步状态 1 SRM合同下达成功
    public static final String PACKAGE_SRM_SYNC_SUCESS = "1";
    // 分包计划合同同步状态 99 SRM下达失败
    public static final String PACKAGE_SRM_SYNC_FAIL = "99";

    // 分包合同变更标识 1 是 0否
    public static final int FB_CONTRACT_UN_CHANGE = 0;
    // 分包合同变更标识 1 是 0否
    public static final int FB_CONTRACT_CHANGE = 1;

    // 对内验工月报同步标识 0 未同步 1 已同步
    public static final String REPORT_SYNC_SRM_OFF = "0";

    // 对内验工月报同步标识 0 未同步 1 已同步
    public static final String REPORT_SYNC_SRM_ON = "1";

    // 出库单执行中
    public static final String REC_DELIVERY_RQ_INT = "0";
    // 出库单关闭
    public static final String REC_DELIVERY_RQ_CLOSE = "1";
    // 出库单驳回
    public static final String REC_DELIVERY_RQ_CANCEL = "2";

    // 出库申请中
    public static final String REC_DELIVERY_INT = "0";
    // 出库提交
    public static final String REC_DELIVERY_COMMIT = "1";
    // 出库完成
    public static final String REC_DELIVERY_FINISH = "2";
    // 出库失败
    public static final String REC_DELIVERY_ERR = "3";
    // 出库驳回
    public static final String REC_DELIVERY_CANCEL = "4";

    // 冲销申请中
    public static final String REC_BK_DELIVERY_INT = "0";
    // 冲销提交
    public static final String REC_BK_DELIVERY_COMMIT = "1";
    // 冲销完成
    public static final String REC_BK_DELIVERY_FINISH = "2";
    // 冲销失败
    public static final String REC_BK_DELIVERY_ERR = "3";
    // 冲销驳回
    public static final String RREC_BK_DELIVERY_CANCEL = "4";

    // 删除FLG
    public static final int DEL_OFF = 0;
    // 删除FLG
    public static final int DEL_ON = 1;

    // 分包计划临时版本 0 临时版本 1 正式版本
    public static final int VERSION_STATUS_ON = 0;
    // 分包计划临时版本 0 临时版本 1 正式版本
    public static final int VERSION_STATUS_OFF = 1;

    // -------------------PMS-OA-----定数---------------------------------------
    // OA单点登录返回结果： 成功
    public static final int LOGIN_OK = '0';
    // OA单点登录返回结果： 失败
    public static final int LOGIN_ERROR = '1';

    // OA审批驳回
    public static final int OA_BACK_REJECT = 0;
    // OA审批提交成功
    public static final int OA_BACK_SUCCESS = 3;

    // OA审批创建中
    public static final int APPROVAL_ING = 0;
    // OA审批提交失败
    public static final int APPROVAL_FAIL = 1;
    // OA审批驳回
    public static final int APPROVAL_REJECT = 2;
    // OA审批提交成功
    public static final int APPROVAL_SUCCESS = 3;

    public static final String OA_INFO = "OAINFO";

    public static final String OA_OAROVAL = "OAROVAL";

    // OA审批提交-计划数据
    public static final String OA_APPROVAL_DATA = "oaApprovalData";

    public static final String BUSINESS_APPROVAL_DT = "Dt";

    // 商务角色：工程量清单的100版本的审批
    public static final String BUSINESS_APPROVAL_100 = "bus1";
    // 商务角色：材料计划转的200版本审批
    public static final String BUSINESS_APPROVAL_WZ_100 = "bus2";
    // 商务角色：分包计划转的200版本审批
    public static final String BUSINESS_APPROVAL_FB_100 = "bus3";
    // 商务角色：分包合同下达审批
    public static final String BUSINESS_APPROVAL_FB_CONTACTS = "bus4";
    // 商务角色：对外验工月报审批
    public static final String BUSINESS_APPROVAL_REPORT_OUT = "bus5";

    // 工程师角色：材料计划_100版本_修正变更审批
    public static final String ENGINEER_APPROVAL_WZ_100_UPD = "eng1";
    // 工程师角色：材料计划_100版本_追加变更审批
    public static final String ENGINEER_APPROVAL_WZ_100_ADD = "eng2";
    // 工程师角色：材料计划_200版本_修正变更审批
    public static final String ENGINEER_APPROVAL_WZ_200_UPD = "eng3";
    // 工程师角色：材料计划_200版本_追加变更审批
    public static final String ENGINEER_APPROVAL_WZ_200_ADD = "eng4";

    // 工程师角色：分包计划_100版本_修正变更审批
    public static final String ENGINEER_APPROVAL_FB_100_UPD = "eng5";
    // 工程师角色：分包计划_100版本_追加变更审批
    public static final String ENGINEER_APPROVAL_FB_100_ADD = "eng6";
    // 工程师角色：分包计划_200版本_修正变更审批
    public static final String ENGINEER_APPROVAL_FB_200_UPD = "eng7";
    // 工程师角色：分包计划_200版本_追加变更审批
    public static final String ENGINEER_APPROVAL_FB_200_ADD = "eng8";

    // 工程师角色：材料计划申请_审批
    public static final String ENGINEER_APPROVAL_WZ_REQ = "eng9";
    // 工程师角色：对内验工月报_审批
    public static final String ENGINEER_APPROVAL_FB_REQ = "eng10";

    // OA审批流请求URL
    public static final String OA_BPM_REQ_URL = "oaBpmSerUrl";
    // OA审批流请求预览URL
    public static final String OA_APPROVL_URL_BASE = "approvlUrlBase";

    // OA审批流BUS4：请求信息Header
    public static final String OA_BUS4_HEADER_INFO = "bus4HeaderInfo";
    // OA审批流BUS4：请求信息Body
    public static final String OA_BUS4_BODY_INFO = "bus4BodyInfo";

    // -------------------PMS-SRM-----日志定数---------------------------------------
    public static final String SRM01_LOG_MODEL_REQ = "SRM01_REQ";
    public static final String SRM01_LOG_MODEL_RES = "SRM01_RES";
    public static final String SRM02_LOG_MODEL_REQ = "SRM02_REQ";
    public static final String SRM02_LOG_MODEL_RES = "SRM02_RES";
    public static final String SRM03_LOG_MODEL_REQ = "SRM03_REQ";
    public static final String SRM03_LOG_MODEL_RES = "SRM03_RES";
    public static final String SRM04_LOG_MODEL_REQ = "SRM04_REQ";
    public static final String SRM04_LOG_MODEL_RES = "SRM04_RES";
    public static final String SRM05_LOG_MODEL_REQ = "SRM05_REQ";
    public static final String SRM05_LOG_MODEL_RES = "SRM05_RES";
    public static final String SRM_LOG_SYNCFILE_REQ = "SRM_SYNCFILE_REQ";
    public static final String SRM_LOG_SYNCFILE_RES = "SRM_SYNCFILE_RES";

    public static final String PMS01_LOG_MODEL_REQ = "PMS01_REQ";
    public static final String PMS02_LOG_MODEL_REQ = "PMS02_REQ";
    public static final String PMS03_LOG_MODEL_REQ = "PMS03_REQ";
    public static final String PMS04_LOG_MODEL_REQ = "PMS04_REQ";
    public static final String PMS05_LOG_MODEL_REQ = "PMS05_REQ";
    public static final String PMS06_LOG_MODEL_REQ = "PMS06_REQ";
    public static final String PMS07_LOG_MODEL_REQ = "PMS07_REQ";
    public static final String PMS08_LOG_MODEL_REQ = "PMS08_REQ";

    public static final String PMS01_LOG_MODEL_RES = "PMS01_RES";
    public static final String PMS02_LOG_MODEL_RES = "PMS02_RES";
    public static final String PMS03_LOG_MODEL_RES = "PMS03_RES";
    public static final String PMS04_LOG_MODEL_RES = "PMS04_RES";
    public static final String PMS05_LOG_MODEL_RES = "PMS05_RES";
    public static final String PMS06_LOG_MODEL_RES = "PMS06_RES";
    public static final String PMS07_LOG_MODEL_RES = "PMS07_RES";
    public static final String PMS08_LOG_MODEL_RES = "PMS08_RES";

    public static final String OAPMS01_LOG_MODEL_REQ = "OA-PMS01_REQ";
    public static final String OAPMS01_LOG_MODEL_RES = "OA-PMS01_RES";
    public static final String OAPMS02_LOG_MODEL_REQ = "OA-PMS02_REQ";
    public static final String OAPMS02_LOG_MODEL_RES = "OA-PMS02_RES";
    public static final String OAPMS03_LOG_MODEL_REQ = "OA-PMS03_REQ";
    public static final String OAPMS03_LOG_MODEL_RES = "OA-PMS03_RES";

    // -------------------PMS-SRM-----PMSAPIUTIL定数--------------------------------------
    // 版本
    public static final String MAP_VER = "VER";
    // 材料计划OBJECT
    public static final String MAP_BUSMATERIALPLAN = "BUSMATERIALPLAN";
    //
    public static final String MAP_BIGVERSION = "bigVersion";
    //
    public static final String MAP_SMALLVERION = "smallVerion";
    public static final String MAP_VERSIONSTATUS = "versionStatus";


    // 分承包计划OBJECT
    public static final String MAP_BUSMATERIALPACKAGE = "BUSMATERIALPACKAGE";

    // 检索MAP
    public static final String MAP_TYPE = "type";
    // 检索MAP
    public static final String MAP_PURCHASEID = "purchaseId";
    // 检索MAP
    public static final String MAP_PURCHASEDETAILSID = "purchaseDetailsId";
    // 检索MAP
    public static final String MAP_PROJECTID = "projectId";
    // 检索MAP
    public static final String MAP_PROJECTCODE = "projectCode";
    // 检索MAP
    public static final String MAP_VERSIONID = "versionId";
    // 检索MAP
    public static final String MAP_MATERIALID = "materialId";
    // 检索MAP
    public static final String MAP_UNITNAME = "unitName";
    // 检索MAP
    public static final String MAP_MAJORCODE = "majorCode";
    // 检索MAP
    public static final String MAP_PACKAGENO = "packageNo";
    // 检索MAP
    public static final String MAP_PACKAGECODE = "packageCode";

    // 检索MAP
    public static final String MAP_MATERIALPLANID = "materialPlanId";
    // 检索MAP
    public static final String MAP_MATERIALPACKAGEID = "materialPackageId";
    // 检索MAP
    public static final String MAP_SUPPLIERID = "supplierId";
    // 检索MAP
    public static final String MAP_SRMPACKAGEID = "srmPackageId";
    // 检索MAP
    public static final String MAP_PLANID = "planId";
    // 检索MAP
    public static final String MAP_PLANDTLID = "plandtlId";
    // 检索MAP
    public static final String MAP_BUSMATERIALSRMID = "busMaterialSrmId";
    // 检索MAP
    public static final String MAP_PARENTID = "parentId";
    // 检索MAP
    public static final String MAP_SUPPLIERCODE = "supplierCode";
    // 检索MAP
    public static final String MAP_SUPPLIERNAME = "supplierName";
    // 检索MAP
    public static final String MAP_CONTRACTSMATDTLID = "contractsmatdtlId";
    // 检索MAP
    public static final String MAP_CONTRACTROWNO = "contractRowno";
    // 检索MAP
    public static final String MAP_SRMSYNCSTATUS = "srmSyncStatus";
    // 检索MAP
    public static final String MAP_MATERIALCODE = "materialCode";

    // SAP 出库 MAP
    public static final String MAP_MSGTYFROMSAP = "msgtyFromSap";
    public static final String MAP_MSGTXFROMSAP = "msgtxFromSap";
    public static final String MAP_PACKAGEPLAN100IDP = "packagePlan100Id";
    // 用户检索MAP
    public static final String MAP_NICKNAME = "nickName";
    // OA审批流N
    public static final String MAP_REQUESTID = "requestId";

    public static final String MAP_RECDECREQID = "recDecReqId";
    public static final String MAP_SYNCSTATUS = "syncStatus";

    // 计划数据审批状态

    public static final String MAP_APPLAYSTATUS = "applayStatus";
    public static final String MAP_PLANTYPE = "planType";

    // SAP 出库 MAP
    public static final String REC_DERVERY_SAP_BACK_ERR = "E";

    // 同步flg
    public static final String ORDER_FLG_OFF = "0";
    public static final String ORDER_FLG_ON = "1";

    // 同步flg
    public static final String ORDER_OPEN_FLG_SYNC_ING = "0";
    public static final String ORDER_OPEN_FLG_SYNC_OK = "1";

    public static final String LINE_HAIFENG = "_";

    // -------------------PMS-SRM-----分包固定参数--------------------------------------
    // PMS-分包合同：未下达
    public static final String PACKAGE_CONTRACT_OFF = "0";
    // PMS-分包合同：已下达
    public static final String PACKAGE_CONTRACT_ON = "1";

    // -------------------PMS-SRM-----PMSAPIUTIL定数--------------------------------------
    public static final int PACKAGE_CONTRACT_STATE_FALSE = 0;
    public static final int PACKAGE_CONTRACT_STATE_CREATE = 1;
    public static final int PACKAGE_CONTRACT_STATE_SUCCESS = 2;

    // -------------------PMS-SRM-----采购订单类型--------------------------------------
    public static final String ORDER_TYPE_Z01 = "Z01";
    public static final String ORDER_TYPE_Z02 = "Z02";
    public static final String ORDER_TYPE_Z03 = "Z03";
    public static final String ORDER_TYPE_Z04 = "Z04";
    public static final String ORDER_TYPE_Z05 = "Z05";
    public static final String ORDER_TYPE_Z06 = "Z06";
    public static final String ORDER_TYPE_Z07 = "Z07";
    public static final String ORDER_TYPE_Z08 = "Z08";
    public static final String ORDER_TYPE_Z09 = "Z09";
    public static final String ORDER_TYPE_Z98 = "Z98";
    public static final String ORDER_TYPE_Z99 = "Z99";
    public static final String ORDER_TYPE_Z9901 = "Z9901";
    // -------------------PMS-SRM-----文件输出--------------------------------------
    public static final String OUT_TMP_PATH = "/excel/outTmp/";
    public static final String TMP_WBS_SAP = "wbsforsap.xlsx";
    public static final String TMP_WBS_SAP_OUT = "wbsOutPut.xlsx";

    // -------------------PMS-SRM-----Err MSG--------------------------------------
    public static final String MATERIAL_REQ_ERR01 = "材料申请发送失败";

    // -------------------PMS-SRM-----反射方法--------------------------------------
    public static final String PARAM_SET = "set";
    // ------SET-------
    public static final String INVOKE_SET_ENDPURCHASECOUNT = "setEndPurchaseCount";
    public static final String INVOKE_SET_ZTPURCHASECOUNT = "setZtPurchaseCount";
    public static final String INVOKE_SET_CostQuantity100 = "setCostQuantity100";
    public static final String INVOKE_SET_CostQuantity200 = "setCostQuantity200";
    public static final String INVOKE_SET_PLANPURCHASECOUNT = "setPlanPurchaseCount";
    public static final String INVOKE_SET_DHPURCHASECOUNT = "setDhPurchaseCount";
    public static final String INVOKE_SET_SUPPLIERNUM = "setSupplierNum";
    public static final String INVOKE_SET_ORDERFLG = "setOrderflg";
    public static final String INVOKE_SET_SUPPLIERID = "setSupplierId";
    public static final String INVOKE_SET_SYNCSTATUS = "setSyncStatus";
    public static final String INVOKE_SET_SRMPACKAGEID = "setSrmPackageId";
    public static final String INVOKE_SET_SRMSYNCSTATUS = "setSrmSyncStatus";

    // ------GET-------
    public static final String PARAM_GET = "get";
    public static final String INVOKE_GET_COSTQUANTITY100 = "getCostQuantity100";
    public static final String INVOKE_GET_COSTQUANTITY200 = "getCostQuantity200";
    public static final String INVOKE_GET_PARENTID = "getParentId";
    public static final String INVOKE_GET_MATERIALID = "getMaterialId";
    public static final String INVOKE_GET_PLANPURCHASECOUNT = "getPlanPurchaseCount";
    public static final String INVOKE_GET_ZTPURCHASECOUNT = "getZtPurchaseCount";
    public static final String INVOKE_GET_DHPURCHASECOUNT = "getDhPurchaseCount";
    public static final String INVOKE_GET_ENDPURCHASECOUNT = "getEndPurchaseCount";
    public static final String INVOKE_GET_SUPPLIERNUM = "getSupplierNum";
    public static final String INVOKE_GET_SUPPLIERID = "getSupplierId";
    public static final String INVOKE_GET_SYNCSTATUS = "getSyncStatus";
    public static final String INVOKE_GET_MATERIALWBSCODE = "getMaterialWbsCode";
    public static final String INVOKE_GET_MATERIALCODE = "getMaterialCode";
    public static final String INVOKE_GET_MATERIALNAME = "getMaterialName";
    public static final String INVOKE_GET_MEASUREMENTUNIT = "getMeasurementUnit";
    public static final String INVOKE_GET_BRANDNAME = "getBrandName";
    public static final String INVOKE_GET_MATERIALAREA = "getMaterialArea";
    public static final String INVOKE_GET_MATERIALUSE = "getMaterialUse";
    public static final String INVOKE_GET_REMARK = "getRemark";
    public static final String INVOKE_GET_MATERIALPACKAGE100ID = "getMaterialPackage100Id";
    public static final String INVOKE_GET_PackagePlan100Id = "getPackagePlan100Id";
    public static final String INVOKE_GET_SERVICEWBSCODE = "getServiceWbsCode";
    public static final String INVOKE_GET_SERVICECODE = "getServiceCode";
    public static final String INVOKE_GET_PROJECTID = "getProjectId";
    public static final String INVOKE_GET_MAJORCODE = "getMajorCode";
    public static final String INVOKE_GET_MAJORNAME = "getMajorName";
    public static final String INVOKE_GET_PACKAGECODE = "getPackageCode";
    public static final String INVOKE_GET_PACKAGENAME = "getPackageName";
    public static final String INVOKE_GET_PACKAGENO = "getPackageNo";
    public static final String INVOKE_GET_VERSIONSTATUS = "getVersionStatus";
    public static final String INVOKE_GET_MAINAMOUNT = "getMainAmount";
    public static final String INVOKE_GET_SRMSYNCSTATUS = "getSrmSyncStatus";
    public static final String INVOKE_GET_PACKAGEDESC = "getPackageDesc";
    public static final String INVOKE_GET_MATERIASPECS = "getMateriaSpecs";
    public static final String INVOKE_GET_MATERIALPLANID = "getMaterialPlanId";


    // -------------------PMS-SRM-----ERR MESSAGE--------------------------------------
    public static final String ERR_MSG_SRM05_01 = "项目于供应商未进行绑定!";
    public static final String ERR_MSG_SRM05_02 = "当前计划存在未合并的分包数据，请先点击提交进行合并!";

    public static final String OK_MSG_SRM05_01 = "SRM合同下达成功！";

    // -------------------PMS-SRM-----ERR MESSAGE--------------------------------------
    public static final String REDIS_KEY_USERNAME = "userName";
    public static final String REDIS_KEY_PLAN_DATA_COLLECTION = "reqS";
    public static final String REDIS_KEY_BUSREPORT_APPROVALS = "busReportApprovals";
    public static final String REDIS_KEY_BUSREPORT_VER = "ver";
    public static final String REDIS_KEY_BUSREPORT_MAP = "busReportMap";

    // 材料物资状态 -- 0
    public static final int WZ_APPLYSTATUS_INIT = 0;
    // 材料物资状态 -- 0
    public static final int WZ_APPLYSTATUS_AUDIT_WAIT = 4;
    // 材料物资状态 -- 0
    public static final int WZ_APPLYSTATUS_AUDIT_ING = 1;
    // 材料物资状态 -- 0
    public static final int WZ_APPLYSTATUS_AUDIT_PASS = 2;
    // 材料物资状态 -- 0
    public static final int WZ_APPLYSTATUS_AUDIT_NOPASS = 3;

}
